/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package blink.guimodel;

import java.util.List;
import javax.swing.AbstractListModel;

/**
 *
 * @author jerome
 */
public class CollectionListModel extends AbstractListModel{

    
    private List list;
    
    public CollectionListModel(List list) {
        this.list=list;
    }
    
    
    @Override
    public int getSize() {
        return list.size();
    }

    @Override
    public Object getElementAt(int i) {
        return list.get(i);
    }
    
}
